package com.hrb.douban.activtity.setting;

import android.graphics.drawable.ColorDrawable;
import android.os.Bundle;
import android.text.Html;
import android.view.View;
import android.widget.LinearLayout;

import com.hrb.douban.R;
import com.hrb.douban.activtity.base.BaseActivity;
import com.hrb.douban.mview.CustomTitleBar;
import com.hrb.douban.mview.IconView;

import butterknife.BindView;
import butterknife.ButterKnife;

public class InfoActivity extends BaseActivity implements View.OnClickListener {

    @BindView(R.id.custom_title_bar)
    CustomTitleBar customTitleBar;
    @BindView(R.id.top)
    LinearLayout mTop;
    @BindView(R.id.icon_view)
    IconView iconView;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_info);
        ButterKnife.bind(this);
        customTitleBar.setTitleClickListener(this);
        mTop.setDividerDrawable(new ColorDrawable(getResources().getColor(R.color.color_666666)));
        iconView.setText(Html.fromHtml("&#xe614;"));
    }

    @Override
    public void onClick(View v) {
        switch (v.getId()) {
            case R.id.title_bar_left:
                finish();
                break;
        }
    }
}
